<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Image Transparency on Solid Background</title>
  <style>
    html {
      overflow: hidden;
    }

    body {
      background: midnightblue;
    }
  </style>
</head>
<body>

<img src="stars.png" width="500" height="500" alt="" />

</body>
</html>